package de.hsa.group6.budgetmanagement.service;

import java.util.List;

import de.hsa.group6.budgetmanagement.container.Project;
import de.hsa.group6.budgetmanagement.dao.ProjectDao;

public class ProjectService {
	private ProjectDao _projectDao;
	
	public ProjectService(ProjectDao projectDao) {
		this._projectDao = projectDao;
	}
	
	public List<Project> getAllProjects() {
		return _projectDao.getAllProjects();
	}
	
	public Project findByName(String name) {
		return _projectDao.findByName(name);
	}
	
	public Project findById(int id) {
		return _projectDao.findById(id);
	}
}